<T:ViewBase x:Class="WPFExcelReport.TPJKUNDE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDPROJNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDPROJNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDADRSL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDADRSL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDANSPNA:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDANSPNA}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDVORH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDVORH}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDSTATUS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDSTATUS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDUNKLARGRD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDUNKLARGRD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDSELLFDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDSELLFDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDANREDE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDANREDE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKDNAME1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPJKUNDE.PKDNAME1}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsPJKUNDE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwPJKUNDE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwPJKUNDE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="PKDMANDANT"
                                    Binding="{Binding Path=PKDMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDPROJNR"
                                    Binding="{Binding Path=PKDPROJNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDPROJNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDKUNDNR"
                                    Binding="{Binding Path=PKDKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDADRSL"
                                    Binding="{Binding Path=PKDADRSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDADRSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDANSPNA"
                                    Binding="{Binding Path=PKDANSPNA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDANSPNA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDVORH"
                                    Binding="{Binding Path=PKDVORH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDVORH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSTATUS"
                                    Binding="{Binding Path=PKDSTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDUNKLARGRD"
                                    Binding="{Binding Path=PKDUNKLARGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDUNKLARGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSELLFDNR"
                                    Binding="{Binding Path=PKDSELLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSELLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDANREDE"
                                    Binding="{Binding Path=PKDANREDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDANREDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDNAME1"
                                    Binding="{Binding Path=PKDNAME1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDNAME1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDNAME2"
                                    Binding="{Binding Path=PKDNAME2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDNAME2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSTRASSE"
                                    Binding="{Binding Path=PKDSTRASSE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSTRASSE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDZUSATZ"
                                    Binding="{Binding Path=PKDZUSATZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDZUSATZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDLKZ"
                                    Binding="{Binding Path=PKDLKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDLKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDPLZ"
                                    Binding="{Binding Path=PKDPLZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDPLZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDORT"
                                    Binding="{Binding Path=PKDORT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDORT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDPOSTFACH"
                                    Binding="{Binding Path=PKDPOSTFACH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDPOSTFACH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSACHBEARB"
                                    Binding="{Binding Path=PKDSACHBEARB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSACHBEARB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDVERTRETER"
                                    Binding="{Binding Path=PKDVERTRETER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDVERTRETER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSTDVERANTW"
                                    Binding="{Binding Path=PKDSTDVERANTW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSTDVERANTW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDABZUGSKENNZ"
                                    Binding="{Binding Path=PKDABZUGSKENNZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDABZUGSKENNZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDABZUGSDATUM"
                                    Binding="{Binding Path=PKDABZUGSDATUM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDABZUGSDATUM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDANZTAET"
                                    Binding="{Binding Path=PKDANZTAET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDANZTAET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDANZTAETUEBW"
                                    Binding="{Binding Path=PKDANZTAETUEBW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDANZTAETUEBW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDANZTAETERL"
                                    Binding="{Binding Path=PKDANZTAETERL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDANZTAETERL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDNEUBEN"
                                    Binding="{Binding Path=PKDNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDNEUDAT"
                                    Binding="{Binding Path=PKDNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDNEUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDAENDBEN"
                                    Binding="{Binding Path=PKDAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDAENDDAT"
                                    Binding="{Binding Path=PKDAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDAENDZL"
                                    Binding="{Binding Path=PKDAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDTELEFON"
                                    Binding="{Binding Path=PKDTELEFON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDTELEFON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDTELEFAX"
                                    Binding="{Binding Path=PKDTELEFAX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDTELEFAX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDSPRKZ"
                                    Binding="{Binding Path=PKDSPRKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDSPRKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKDFILLER"
                                    Binding="{Binding Path=PKDFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKDFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
